package com.base.api.dto.commodity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "分类商品筛选请求参数")
public class ClassifyBountyScreenDTO implements Serializable {
    @NotNull(message = "页码不能为空")
    @ApiModelProperty(value="页码", example = "1")
    private Integer offset;

    @NotNull(message = "页码大小不能为空")
    @ApiModelProperty(value="页码大小",example = "6")
    private Integer limit;

    @ApiModelProperty(value="商品一级分类id(0全部)",example = "0")
    @NotNull(message = "商品一级分类不能为空")
    private Integer classifyId1;

    @ApiModelProperty(value="排序方式(0.综合(默认降序) 1.销量 2.最新 3.价格) 多个以';'号隔开 [ASC:升序 DESC:降序] 例如（1:DESC;2:ASC）")
    @NotBlank(message = "排序方式不能为空")
    private String sortWay;
}
